package com.gw.quotes.entity.business;

import java.io.Serializable;
import java.util.ArrayList;

import com.gw.quotes.net.Response;

public class OrderInfoEntity extends Response implements Serializable {

	private static final long serialVersionUID = 1L;

	private Order order;

	public static class Order implements Serializable {

		private static final long serialVersionUID = 1L;
		/**
		 * 订单总额
		 */
		private double total;
		/**
		 * 购买单位名称
		 */
		private String buyerorgname;
		
		/**
		 * 购买单位联系方式
		 */
		private String linkmobile;
		
		/**
		 * 订单guid
		 */
		private String orderguid;
		/**
		 * 订单状态
		 */
		private int status;
		/**
		 * 商品数量
		 */
		private int qty;
		/**
		 * 订单类型 1：普通订单 显示ordergoods-orderAccessorieList- orderOptionalList
		 * 2：联系单显示 Ordergoods-orderDetail-serviceProjects 3：会议联系单 4：维修联系单
		 */
		private int ordertype;
		/**
		 * 对应商品品目
		 */
		private String goodsclassname;
		/**
		 * 编号
		 */
		private String code;
		/**
		 * 是否已起草合同
		 */
		private boolean hasContract;

		/**
		 * 订单商品列表
		 */
		private ArrayList<OrderGood> orderGoodsList;

		public static class OrderGood implements Serializable {

			private static final long serialVersionUID = 1L;

			/**
			 * 商品名称
			 */
			private String goodsname;
			/**
			 * 最终总价
			 */
			private double finalprice;
			/**
			 * 订单guid
			 */
			private String orderguid;
			/**
			 * 商品guid
			 */
			private String goodsguid;
			/**
			 * 最终单价
			 */
			private double finaltotal;
			/**
			 * 订单商品编号
			 */
			private String ordergoodsguid;
			/**
			 * 行情guid
			 */
			private String priceguid;
			/**
			 * 图片路径
			 */
			private String imgurl;

			/**
			 * 选配列表
			 */
			private ArrayList<OrderOptional> orderOptionalList;
			/**
			 * 定点商品列表
			 */
			private ArrayList<OrderAccessorie> orderAccessorieList;

			public ArrayList<OrderOptional> getOrderOptionalList() {
				return orderOptionalList;
			}

			public void setOrderOptionalList(
					ArrayList<OrderOptional> orderOptionalList) {
				this.orderOptionalList = orderOptionalList;
			}

			public ArrayList<OrderAccessorie> getOrderAccessorieList() {
				return orderAccessorieList;
			}

			public void setOrderAccessorieList(
					ArrayList<OrderAccessorie> orderAccessorieList) {
				this.orderAccessorieList = orderAccessorieList;
			}

			public static class OrderAccessorie implements Serializable {

				private static final long serialVersionUID = 1L;
				/**
				 * 商品名称
				 */
				private String goodsname;
				/**
				 * 最终单价
				 */
				private double finalprice;
				/**
				 * 商品id
				 */
				private String goodsguid;
				/**
				 * 定点商品配件id
				 */
				private String orderaccessoryguid;
				/**
				 * 数量
				 */
				private int qty;
				/**
				 * 订单商品id
				 */
				private String ordergoodsguid;
				/**
				 * 行情id
				 */
				private String priceguid;
				/**
				 * 图片地址
				 */
				private String imgurl;

				public String getGoodsname() {
					return goodsname;
				}

				public void setGoodsname(String goodsname) {
					this.goodsname = goodsname;
				}

				public double getFinalprice() {
					return finalprice;
				}

				public void setFinalprice(double finalprice) {
					this.finalprice = finalprice;
				}

				public String getGoodsguid() {
					return goodsguid;
				}

				public void setGoodsguid(String goodsguid) {
					this.goodsguid = goodsguid;
				}

				public String getOrderaccessoryguid() {
					return orderaccessoryguid;
				}

				public void setOrderaccessoryguid(String orderaccessoryguid) {
					this.orderaccessoryguid = orderaccessoryguid;
				}

				public int getQty() {
					return qty;
				}

				public void setQty(int qty) {
					this.qty = qty;
				}

				public String getOrdergoodsguid() {
					return ordergoodsguid;
				}

				public void setOrdergoodsguid(String ordergoodsguid) {
					this.ordergoodsguid = ordergoodsguid;
				}

				public String getPriceguid() {
					return priceguid;
				}

				public void setPriceguid(String priceguid) {
					this.priceguid = priceguid;
				}

				public String getImgurl() {
					return imgurl;
				}

				public void setImgurl(String imgurl) {
					this.imgurl = imgurl;
				}

			}

			public static class OrderOptional implements Serializable {
				private static final long serialVersionUID = 1L;
				/**
				 * 最终单价
				 */
				private double finalprice;
				/**
				 * 选配guid
				 */
				private String orderoptionalguid;
				/**
				 * 选配数量
				 */
				private int qty;
				/**
				 * 选配内容
				 */
				private String optioncontent;

				public double getFinalprice() {
					return finalprice;
				}

				public void setFinalprice(double finalprice) {
					this.finalprice = finalprice;
				}

				public String getOrderoptionalguid() {
					return orderoptionalguid;
				}

				public void setOrderoptionalguid(String orderoptionalguid) {
					this.orderoptionalguid = orderoptionalguid;
				}

				public int getQty() {
					return qty;
				}

				public void setQty(int qty) {
					this.qty = qty;
				}

				public String getOptioncontent() {
					return optioncontent;
				}

				public void setOptioncontent(String optioncontent) {
					this.optioncontent = optioncontent;
				}

			}

			public String getGoodsname() {
				return goodsname;
			}

			public void setGoodsname(String goodsname) {
				this.goodsname = goodsname;
			}

			public double getFinalprice() {
				return finalprice;
			}

			public void setFinalprice(double finalprice) {
				this.finalprice = finalprice;
			}

			public String getOrderguid() {
				return orderguid;
			}

			public void setOrderguid(String orderguid) {
				this.orderguid = orderguid;
			}

			public String getGoodsguid() {
				return goodsguid;
			}

			public void setGoodsguid(String goodsguid) {
				this.goodsguid = goodsguid;
			}

			public double getFinaltotal() {
				return finaltotal;
			}

			public void setFinaltotal(double finaltotal) {
				this.finaltotal = finaltotal;
			}

			public String getOrdergoodsguid() {
				return ordergoodsguid;
			}

			public void setOrdergoodsguid(String ordergoodsguid) {
				this.ordergoodsguid = ordergoodsguid;
			}

			public String getPriceguid() {
				return priceguid;
			}

			public void setPriceguid(String priceguid) {
				this.priceguid = priceguid;
			}

			public String getImgurl() {
				return imgurl;
			}

			public void setImgurl(String imgurl) {
				this.imgurl = imgurl;
			}

		}

		public double getTotal() {
			return total;
		}

		public void setTotal(double total) {
			this.total = total;
		}

		public String getBuyerorgname() {
			return buyerorgname;
		}

		public void setBuyerorgname(String buyerorgname) {
			this.buyerorgname = buyerorgname;
		}

		public String getOrderguid() {
			return orderguid;
		}

		public void setOrderguid(String orderguid) {
			this.orderguid = orderguid;
		}

		public int getStatus() {
			return status;
		}

		public void setStatus(int status) {
			this.status = status;
		}

		public int getQty() {
			return qty;
		}

		public void setQty(int qty) {
			this.qty = qty;
		}

		public int getOrdertype() {
			return ordertype;
		}

		public void setOrdertype(int ordertype) {
			this.ordertype = ordertype;
		}

		public String getGoodsclassname() {
			return goodsclassname;
		}

		public void setGoodsclassname(String goodsclassname) {
			this.goodsclassname = goodsclassname;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public boolean isHasContract() {
			return hasContract;
		}

		public void setHasContract(boolean hasContract) {
			this.hasContract = hasContract;
		}

		public ArrayList<OrderGood> getOrderGoodsList() {
			return orderGoodsList;
		}

		public void setOrderGoodsList(ArrayList<OrderGood> orderGoodsList) {
			this.orderGoodsList = orderGoodsList;
		}

		public String getLinkmobile() {
			return linkmobile;
		}

		public void setLinkmobile(String linkmobile) {
			this.linkmobile = linkmobile;
		}

	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

}
